package com.example.springbootv1.service.impl;

import com.example.springbootv1.mapper.PojoTestMapper;
import com.example.springbootv1.mapper.SysRoleMapper;
import com.example.springbootv1.pojo.PojoTest;
import com.example.springbootv1.pojo.SySRole;
import com.example.springbootv1.service.PojoTestService;
import com.example.springbootv1.service.SysRoleService;
import com.example.springbootv1.util.ExcelUtil;
import jakarta.servlet.http.HttpServletResponse;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.InputStream;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Service
public class SysRoleServiceImpl implements SysRoleService {
    @Autowired
    private SysRoleMapper sySRoleMapper;

    @Override
    public List<SySRole> getList(SySRole sySRole) {
        return sySRoleMapper.getList(sySRole);
    }

    @Override
    public int insert(SySRole sySRole) {
        return sySRoleMapper.insert(sySRole);
    }

    @Override
    public int deleteById(Long id) {
        return sySRoleMapper.deleteById(id);
    }
}
